home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000824-20010305
/
000025_news@columbia.edu _Wed Sep 13 10:38:14 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-03-05
|
2KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA19347
for <kermit.misc@cpunix.cc.columbia.edu>; Wed, 13 Sep 2000 10:38:13 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA01710
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Sep 2000 10:38:13 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA17075
for kermit.misc@watsun.cc.columbia.edu; Wed, 13 Sep 2000 10:35:37 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: login script help req.
Date: 13 Sep 2000 14:35:35 GMT
Organization: Columbia University
Message-ID: <8po3bn$glg$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <rMK+ObTIovkuI1Y1ERJm+QNZYJI0@4ax.com>,
Ian Lim <limian@singnet.com.sg> wrote:
: I would like to have a script for K95 as well as Kermit3.16 to do the
: following, pls guide me
:
: input {$}
: output su
: input {Password:}
: output 9999
: input {$}
: output cd /home/tent/out
: input {$}
:
: from here I would like to automatically download all T* files, after
: successful download send all these files to /home/tent/out/backup
:
There are lots of examples in the manuals, and in the script library:
http://www.columbia.edu/kermit/scriptlib.html
and a brief tutorial here:
http://www.columbia.edu/kermit/ckscripts.html#tut
First of all, as it says there, put "if fail" or "if success" statements
after each INPUT. Use LINEOUT instead of OUTPUT, or else put \13 on the
end of each OUTPUT string.
: from here I would like to automatically download all T* files
: after successful download send all these files to /home/tent/out/backup.
:
/home/tent/out/backup on which computer? Assuming you mean the local
computer, have your script start a Kermit server on the far end and then:
remote cd <desired-directory-on-host>
if fail ...
get /move-to:/tent/out/backup T*
if fail ...
This works in current versions of C-Kermit 7.0 and K95. MS-DOS Kermit
does not have GET /MOVE-TO:.
For a fuller discussion, see Case Study #10:
http://www.columbia.edu/kermit/case10.html
- Frank